package com.abp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@TableName("user_book_ratings")
@Data
public class UserBookRating {

//    @TableId(type = IdType.AUTO)
//    private int id;  // 主键ID

    private int userId;  // 用户ID
    private int bookId;  // 图书ID
    private float rating;  // 评分
    private Date createdAt;  // 评分时间
}
